package com.hotel.company.repository;

import com.hotel.comm.bean.company.EjobCompanyPosition;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface IEjobCompanyPositionRepository extends JpaRepository<EjobCompanyPosition, Long> {
    @Query("select ecp from EjobCompanyPosition ecp where ecp.ejobCity.id = ?1")
    public List<EjobCompanyPosition> findByCityId(Long cityId);

}
